import * as tslib_1 from "tslib";
import { Entity, NgField, EntityList, NgList, NgEntity } from '@farris/devkit';
import { NewObject1Entity } from './newobject1entity';
import { NewObject2Entity } from './newobject2entity';
var ClzxEntity = /** @class */ (function (_super) {
    tslib_1.__extends(ClzxEntity, _super);
    function ClzxEntity() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ID',
            dataField: 'id',
            primary: true,
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ID',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "id", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Version',
            dataField: 'version',
            originalDataFieldType: 'DateTime',
            initValue: '0001-01-01T00:00:00',
            path: 'Version',
            enableTimeZone: true,
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "version", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'EmployeeID',
            dataField: 'employeeID',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'EmployeeID',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "employeeID", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'DomainID',
            dataField: 'domainID',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'DomainID',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "domainID", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'BillCode',
            dataField: 'billCode',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'BillCode',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "billCode", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'TotalSum',
            dataField: 'totalSum',
            originalDataFieldType: 'Number',
            initValue: 0,
            path: 'TotalSum',
        }),
        tslib_1.__metadata("design:type", Object)
    ], ClzxEntity.prototype, "totalSum", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'BillType',
            dataField: 'billType',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'BillType',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [1],
                    message: '最大长度为1',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "billType", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'BillDate',
            dataField: 'billDate',
            originalDataFieldType: 'DateTime',
            initValue: '0001-01-01T00:00:00',
            path: 'BillDate',
            enableTimeZone: true,
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "billDate", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ProjectID',
            dataField: 'projectID',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ProjectID',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "projectID", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'BillNote',
            dataField: 'billNote',
            originalDataFieldType: 'Text',
            initValue: '',
            path: 'BillNote',
        }),
        tslib_1.__metadata("design:type", Object)
    ], ClzxEntity.prototype, "billNote", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ProjectMrg',
            dataField: 'projectMrg',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ProjectMrg',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "projectMrg", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'FileInfo',
            dataField: 'fileInfo',
            originalDataFieldType: 'Text',
            initValue: '',
            path: 'FileInfo',
        }),
        tslib_1.__metadata("design:type", Object)
    ], ClzxEntity.prototype, "fileInfo", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'BillDetailDate',
            dataField: 'billDetailDate',
            originalDataFieldType: 'DateTime',
            initValue: '0001-01-01T00:00:00',
            path: 'BillDetailDate',
            enableTimeZone: true,
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "billDetailDate", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'BillDetailAmount',
            dataField: 'billDetailAmount',
            originalDataFieldType: 'Number',
            initValue: 0,
            path: 'BillDetailAmount',
        }),
        tslib_1.__metadata("design:type", Object)
    ], ClzxEntity.prototype, "billDetailAmount", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'BillDetailNote',
            dataField: 'billDetailNote',
            originalDataFieldType: 'Text',
            initValue: '',
            path: 'BillDetailNote',
        }),
        tslib_1.__metadata("design:type", Object)
    ], ClzxEntity.prototype, "billDetailNote", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'InvoiceNO',
            dataField: 'invoiceNO',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'InvoiceNO',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "invoiceNO", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'XSDW',
            dataField: 'xsdw',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'XSDW',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "xsdw", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'BZ',
            dataField: 'bz',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'BZ',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [10],
                    message: '最大长度为10',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "bz", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Code',
            dataField: 'code',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Code',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [100],
                    message: '最大长度为100',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "code", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Remark',
            dataField: 'remark',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Remark',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [1000],
                    message: '最大长度为1000',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "remark", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'State',
            dataField: 'state',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'State',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [22],
                    message: '最大长度为22',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "state", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Organization',
            dataField: 'organization',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Organization',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "organization", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Gender',
            dataField: 'gender',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Gender',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [22],
                    message: '最大长度为22',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "gender", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'CountryOrArea',
            dataField: 'countryOrArea',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'CountryOrArea',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [22],
                    message: '最大长度为22',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "countryOrArea", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Location',
            dataField: 'location',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Location',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [22],
                    message: '最大长度为22',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "location", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'IDNumber',
            dataField: 'idNumber',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'IDNumber',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [18],
                    message: '最大长度为18',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "idNumber", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'AccontName',
            dataField: 'accontName',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'AccontName',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [200],
                    message: '最大长度为200',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "accontName", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'YF',
            dataField: 'yf',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'YF',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [1],
                    message: '最大长度为1',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "yf", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Amount',
            dataField: 'amount',
            originalDataFieldType: 'Number',
            initValue: 0,
            path: 'Amount',
        }),
        tslib_1.__metadata("design:type", Object)
    ], ClzxEntity.prototype, "amount", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Note',
            dataField: 'note',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Note',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [2000],
                    message: '最大长度为2000',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "note", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'jszt',
            dataField: 'jszt',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'jszt',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [1],
                    message: '最大长度为1',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ClzxEntity.prototype, "jszt", void 0);
    tslib_1.__decorate([
        NgList({
            dataField: 'newObject1s',
            originalDataField: '',
            type: NewObject1Entity
        }),
        tslib_1.__metadata("design:type", EntityList)
    ], ClzxEntity.prototype, "newObject1s", void 0);
    tslib_1.__decorate([
        NgList({
            dataField: 'newObject2s',
            originalDataField: '',
            type: NewObject2Entity
        }),
        tslib_1.__metadata("design:type", EntityList)
    ], ClzxEntity.prototype, "newObject2s", void 0);
    ClzxEntity = tslib_1.__decorate([
        NgEntity({
            originalCode: "clzx",
            nodeCode: "clzxs"
        })
    ], ClzxEntity);
    return ClzxEntity;
}(Entity));
export { ClzxEntity };
